package com.lyc.wanandroid_kotlin.ui.activity.search.mvp.model

import com.lyc.wanandroid_kotlin.base.BaseModel
import com.lyc.wanandroid_kotlin.bean.HotSearchBean
import com.lyc.wanandroid_kotlin.bean.HttpResult
import com.lyc.wanandroid_kotlin.http.RetrofitHelper
import com.lyc.wanandroid_kotlin.ui.activity.search.mvp.contract.SearchContract
import io.reactivex.Observable

/**
 * ClassName:com.lyc.wanandroid_kotlin.ui.activity.search.mvp.model
 * Description:
 */
class SearchModel : BaseModel(), SearchContract.Model {
    override fun getHotSearchData(): Observable<HttpResult<MutableList<HotSearchBean>>> {
        return RetrofitHelper.service.getHotSearchData()
    }
}